package com.imonsoft.sqm.service.business.ipic_system;

import org.springframework.validation.BindingResult;
import com.imonsoft.common.base.service.BaseService;
import java.util.List;

import com.imonsoft.common.httpModel.DataGrid;
import com.imonsoft.common.httpModel.Pager;
import com.imonsoft.common.httpModel.ReturnMessage;
import com.imonsoft.sqm.pojo.business.ipic_system.Incoming;
import com.imonsoft.sqm.vo.business.ipic_system.IncomingVo;
import com.imonsoft.sqm.web.excel.IncomingExcel.IncomingImportDto;

public interface IncomingService  extends BaseService<Incoming>{

	DataGrid<IncomingVo> getDataGridVoBy(Incoming incoming, Pager pager);

	void txAddIncoming(String incoming, String incomingDetail, ReturnMessage message, BindingResult result) throws Exception;

    public List<Incoming> getIncomingList(String year,String month);
	
	IncomingVo  getModifyData (Long sid,Long pid, String year);
	
	void txUpdateOrAddIncoming(String incoming,String incomingDetail) throws Exception;
	
	

	void deleteIncoming(String incomingDetail) throws Exception;
	
	/**
	 * zhouwei 系统导入保存
	 * 
	 * @param entity
	 * @return
	 */
	public void txInsertForSys(List<IncomingImportDto> incomingImportDtoList);

    public int findIncomingTotalByYearAndMonth(String year, String month);
}
